From: p4u Date: Tue, 25 Dec 2012 19:56:44 +0000 (+0100) Subject: Added tunnels special function for bmx6-info script X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=cd775de66724c99cde5e8cc66eb2d306fc7f4cb5;p=feed%2Frouting.git Added tunnels special function for bmx6-info script --- diff --git a/bmx6-luci/files/www/cgi-bin/bmx6-info b/bmx6-luci/files/www/cgi-bin/bmx6-info index b82f8fd..931cbf6 100644 --- a/bmx6-luci/files/www/cgi-bin/bmx6-info +++ b/bmx6-luci/files/www/cgi-bin/bmx6-info @@ -95,12 +95,17 @@ if [ "$QUERY" == '$neighbours' ]; then print_query descriptions echo "} ] }" exit 0 + +else if [ "$QUERY" == '$tunnels' ]; then + bmx6 -c --jshow tunnels + exit 0 + else check_path "$BMX6_DIR/$QUERY" print_query $QUERY exit 0 fi - +fi ls -1F "$BMX6_DIR" exit 0